const { expect } = require("chai");
const { ethers } = require("hardhat");

describe("CustomerManager", function () {
    it("CustomerManager test", async function () {
        const CustomerManager = await ethers.getContractFactory("CustomerManager");
        const customerManager = await CustomerManager.deploy();
        await customerManager.deployed();
        console.log("address: ", await customerManager.address);
        console.log("add1: ", await customerManager.add(17322314625, "管理员", "0x2D90A171c62A0D2033d3aED05a1DF2AEd2815E5b", "admin"));
        console.log("add2: ", await customerManager.add(17322314624, "管理员", "0x2D90A171c62A0D2033d3aED05a1DF2AEd2815E5b", "admin"));
        console.log("del:1", await customerManager.delCustomer(17322314624))

        // await greeter.transfer(greeter.address, 20);
        // console.log("balance1: ", await greeter.balanceOf(greeter.address));
        // console.log("balance1: ", await greeter.balanceOfOwner());
        // let addr = "0x256EAc5e66d8B84e27461366C32fd2f4b4fF76e7";
        // await greeter.deposit(addr);
        // console.log("balance2: ", await greeter.balanceOf(addr));
        // console.log("balance2: ", await greeter.balanceOfOwner());
    });
});
